package pao.akka.arithmetic;

import akka.actor.ActorSystem;
import akka.actor.Props;
import com.typesafe.config.ConfigFactory;

/**
 * @Author: 陶鹏飞
 * @Description:
 * @Date: 2018/9/10-22:19
 * @email: taopengfei1223@foxmail.com
 **/
public class POSMain {

    public static final int BIRD_COUNT = 100000;
    public static void main(String[] args) {
        ActorSystem actorSystem = ActorSystem.create("psoSystem",ConfigFactory.load("sample.conf"));
        actorSystem .actorOf(Props.create(MasterBird.class),"masterbird");
        for (int i = 0; i < BIRD_COUNT; i++) {
            actorSystem.actorOf(Props.create(Bird.class),"bird_" + i);
        }
    }
}
